@import '../../../../theme/variables';

.form-field {
  margin: 10px 40px;
  margin-bottom: -20px;
  display: flex;

  .x-button {
    width: 24px;
    height: 24px;
    margin-top: 10px;
    cursor: pointer;
  }
}

.bottom-line {
  border-bottom: 2px solid rgba(0, 0, 0, 0.02);
}

mat-select {
  ::ng-deep .mat-select-trigger {
    padding: 10px 30px 10px 10px;
    display: block;
    font-size: 11px;
    height: 100%;
    line-height: 20px;
  }

  ::ng-deep .mat-select-value {
    font-size: 13px;
    line-height: 22px;
  }

  ::ng-deep .mat-select-arrow {
    border: none;
  }

  ::ng-deep .mat-select-placeholder {
    transition: unset !important;
    color: $grey;

    &::before {
      content: 'filter_list';
      font-family: 'Material Icons';
      font-weight: normal;
      font-style: normal;
      font-size: 13px;
      margin-right: 10px;
    }
  }

  mat-select-trigger::before {
    content: 'filter_list';
    font-family: 'Material Icons';
    font-weight: normal;
    font-style: normal;
    font-size: 13px;
    margin-right: 10px;
  }

  .filter {
    font-size: 13px;
    margin-left: 28px;
    text-overflow: ellipsis;
    overflow: hidden;
    white-space: nowrap;
    color: $grey;
  }
}

mat-option ::ng-deep .mat-pseudo-checkbox-checked {
  background: $gradient-blue-dark;
}

.mat-option-disabled {
  ::ng-deep .mat-pseudo-checkbox-disabled {
    opacity: 0.5;
  }
}

.-paper {
  background-color: #fbfbfb;
  border-radius: 10px;
  box-shadow: 0 0 2px 2px rgba(0, 0, 0, 0.01), 1px 1px 2px 2px rgba(0, 0, 0, 0.01);
  margin: 30px;
}

.-transaction {
  background-color: $white;
  border-bottom: 1px solid #eff0f0;
  cursor: pointer;
  display: flex;
  padding: 20px 12px;

  &:first-child {
    border-top-left-radius: 15px;
    border-top-right-radius: 15px;
  }

  &:last-child {
    border-bottom-left-radius: 15px;
    border-bottom-right-radius: 15px;
  }

  > div {
    padding: 0 8px;
  }

  .-icon {
    margin-top: 5px;

    img {
      width: 32px;
    }

    &.-incoming {
      -moz-transform: scaleX(-1);
      -o-transform: scaleX(-1);
      -webkit-transform: scaleX(-1);
      transform: scaleX(-1);
      filter: FlipH;
      -ms-filter: "FlipH";
    }

    &.-pending {
      opacity: 0.5;
    }
  }

  .-address {
    flex: 1;

    h4 {
      color: #1e2227;
      font-size: 13px;
      font-weight: 700;
      line-height: 15px;
      margin: 0 0 8px 0;

      span {
        font-size: 10px;
        line-height: 12px;
        padding-left: 5px;
        font-weight: 300;
      }

      .-pending {
        color: #FDB51E;
      }

      .-timestamp {
        color: $grey;
      }
    }

    .-item {
      &:not(:last-child) {
        margin-bottom: 5px;
      }

      img {
        display: inline-block;
        height: 17px;
        vertical-align: middle;
        width: 17px;
        margin-right: 4px;
      }

      span {
        color: rgba(30, 34, 39, 0.5);
        display: inline-block;
        font-size: 13px;
        line-height: 15px;
        margin: 0;
      }

      .note {
        color: #1e2227;
        word-break: break-word;
        display: inline;
      }
    }
  }

  .-balance {
    width: 200px;
    text-align: right;

    h4 {
      color: #1e2227;
      font-size: 13px;
      font-weight: 700;
      line-height: 15px;
      margin: 0 0 8px 0;
    }

    p {
      color: rgba(30, 34, 39, 0.5);
      display: inline-block;
      font-size: 13px;
      line-height: 15px;
      margin: 0;

      span {
        color: lighten($grey, 40%);
      }
    }
  }
}
